package Chap6_5;

public class Dog implements Animal{

	private String name;
	public Dog()
	{
		
	}
	public Dog(String name)
	{
		this.name= name;
	}
	@Override
	public void cry() {
		System.out.println("汪汪汪！");
	}

	@Override
	public String getAnimalName() {
		return name;
	}
	public void setName(String name)
	{
		this.name = name;
	}

}
